package com.ecp.commons.service;

import java.util.List;

import com.ecp.commons.bean.Region;
import com.ecp.commons.db.GenericService;

public interface RegionService extends GenericService<Region> {
	int addRegion(Region region) throws Exception;

	int save(Region region) throws Exception;

	int deleteRegions(int[] ids) throws Exception;

	List<Region> getChildren(int id) throws Exception;

	boolean isSubregion(int id, int subId) throws Exception;

	String getFullPathIdString(int id, String px) throws Exception;

	String getFullPathString(int id, String px) throws Exception;

	Region getReginById(int id) throws Exception;

	public String getChildrenIdString(int id, String px) throws Exception;

}
